package com.gitee.minimalismstyle.fresh.common.document.service

import com.gitee.minimalismstyle.fresh.common.core.domain.R
import com.gitee.minimalismstyle.fresh.common.document.domain.ImportStatus
import org.springframework.scheduling.annotation.Async
import org.springframework.web.multipart.MultipartFile


interface ImportService {

    fun save(file: MultipartFile): ImportStatus

    @Async
    fun import(id: String, fileId: Long, params: Map<String, Any>)

    fun findStatus(id: Long): R<ImportStatus>
}